|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectcom.prosc.supercontainer.plugin.SCResourceInfo
public class SCResourceInfo
Contains metadata about a SuperContainer resource residing on the server.
| Constructor Summary | |
|---|---|
SCResourceInfo(java.util.Map headers,
java.lang.String filename,
long contentLength,
java.util.Date uploadTime)
Construct a new SCResourceInfo |
|
SCResourceInfo(java.util.Map headers,
java.lang.String filename,
long contentLength,
java.util.Date uploadTime,
java.lang.String md5,
java.lang.String dimensionString,
java.lang.Integer pageCount)
Construct a new SCResourceInfo |
|
| Method Summary | |
|---|---|
long |
getContentLength()
Returns the length in bytes of the file on the server. |
java.lang.String |
getDimensionString()
Returns the dimension of this image resource, or null if the dimension was not calculated on the server, or the resource is not previewable on the server. |
java.lang.String |
getFilename()
Returns the name of the file (this is not normally part of the folderPath). |
java.lang.String |
getHeight()
|
java.net.URL |
getIconUrl(SCPluginModel model)
Returns a URL for the resource icon image. |
java.lang.String |
getMD5()
Returns the MD5 hash of the file on the server, or null if the MD5 hash was not computed for this resource. |
java.lang.Integer |
getPageCount()
The number of pages in the document. |
java.util.Date |
getUploadTime()
Returns the date on which the file was uploaded to the server. |
java.lang.String |
getWidth()
|
boolean |
isAutozip()
Return whether the file was automatically zipped when uploading it to the server. |
boolean |
isRenderable()
Return whether the SuperContainer server appears to be able to generate a thumbnail image version of this resource. |
java.lang.String |
toString()
A string representation of the SCResourceInfo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
SCResourceInfo(java.util.Map headers,
java.lang.String filename,
long contentLength,
java.util.Date uploadTime)
headers - used to get additional headers such as X-SuperContainer-IconURL, X-SuperContainer-AutoZip. The keys and values should be strings.filename - filenamecontentLength - content lengthuploadTime - when the file was uploaded
SCResourceInfo(java.util.Map headers,
java.lang.String filename,
long contentLength,
java.util.Date uploadTime,
java.lang.String md5,
java.lang.String dimensionString,
java.lang.Integer pageCount)
headers - headersfilename - filenamecontentLength - content lengthuploadTime - upload timemd5 - md5 hashdimensionString - dimension as WxHpageCount - number of pages| Method Detail |
|---|
public long getContentLength()
public java.lang.String getDimensionString()
public java.lang.String getFilename()
public java.lang.String getHeight()
public java.net.URL getIconUrl(SCPluginModel model)
throws java.net.MalformedURLException
model - the model, which is used to get the superContainerBase for host-relative URLs
java.net.MalformedURLException - xpublic java.lang.String getMD5()
public java.lang.Integer getPageCount()
public java.util.Date getUploadTime()
public java.lang.String getWidth()
public boolean isAutozip()
public boolean isRenderable()
Note: This may vary from server to server for similar file types (PDF, etc).
public java.lang.String toString()
toString in class java.lang.Object
|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||